package edu.spec.student.dao.impl;

import edu.spec.student.dao.iface.IRubricDao;
import edu.spec.student.model.mental.Rubric;
import org.madgecko.basic.dao.BaseDao;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by MadFrog on 2017/6/20.
 */
@Repository
public class RubricDao extends BaseDao<Rubric> implements IRubricDao {

    @Override
    public List<Rubric> listRubricByMental(Integer mentalId) {
        String hql = "from Rubric r where r.mental.id=" + mentalId;
        return this.list(hql);
    }

}
